#include <boost/shared_ptr.hpp>
#include <iostream>


using namespace boost;

struct test{
    typedef boost::shared_ptr<test> ptr;
    int data1;
    double data2;
};
int main() {
    test::ptr a;
    a = test::ptr();
    if (a) {
        std::cout << "a != NULL" << std::endl;        
    } else {
        std::cout << "a == NULL" << std::endl;
    }
}
